// pages/we/we.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    flag:0,
    condition:false,
    condition1:true,
    conditions:false,
    condition1s:true,
    conditionq:false,
    condition1q:true
  },
  switchnav:function(e){
    console.log(e)
    var id=e.currentTarget.id
    if(this.data.flag==id)
    return false;
    else
    this.setData({flag:id})
  },
showview:function(e){
  console.log(e);
  var condition=this.data.condition;
  var condition1=this.data.condition1;
  this.setData({
   condition:!condition,
   condition1:!condition1
  })
},
showviews:function(e){
  console.log(e);
  var conditions=this.data.conditions;
  var condition1s=this.data.condition1s;
  this.setData({
   conditions:!conditions,
   condition1s:!condition1s
  })
},
showviewq:function(e){
  console.log(e);
  var conditionq=this.data.conditionq;
  var condition1q=this.data.condition1q;
  this.setData({
   conditionq:!conditionq,
   condition1q:!condition1q
  })
},
publishdetail:function(e){
 wx.navigateTo({
   url: '../publishdetail/publishdetail',
 })
},
followdetail:function(e){
 wx.navigateTo({
   url: '../followdetail/followdetail',
 })
},
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {

  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})